package cn.itcast.day06.demo09;

public class Zi extends Fu {
    int num = 20;

    public Zi() {
//        super();//这一行不再赠送
        this(123);//本类的无参构造方法调用本类的有参构造方法
    }

    public Zi(int n) {
        System.out.println(n);
    }

    public void showNum() {
        int num = 10;
        System.out.println(num);//10
        System.out.println(this.num);//20
        System.out.println(super.num);//30
    }

    public void methodA() {
        System.out.println("AAA");
    }

    public void methodB() {
        this.methodA();
        System.out.println("BBB");
    }
}
